const mos = require('mongoose');

mos.connect('mongodb://localhost/CD0417')

mos.connection.on('open',()=>{
    console.log("连接成功");
})

mos.connection.on('error',()=>{
    console.log("连接失败");
})

module.exports = mos;

